import './config/getOpenId'
import '@/api/home'
import '@/util/axios'
import '@/util/wx-port'
import FastClick from 'fastclick'
import Vue from 'vue'
import store from '@/store'
import router from '@/router'
import '@/styles/index.less'
import '@/util/rem'
import '@/util/DateFormat'
// import '@/util/utills'
import App from '@/App'
import nodata from '@/components/noData'
import xdialog from '@/components/x-dialog'
import { XInput, Icon, LoadingPlugin, XButton, Selector, Flow, FlowState, FlowLine, PopupPicker, Group, Box, Grid, GridItem, Tab, TabItem, ToastPlugin, AlertPlugin, ConfirmPlugin, Countdown, XDialog, Swiper, ButtonTabItem, ButtonTab } from 'vux'

Vue.config.productionTip = false
Vue.component('nodata', nodata)
Vue.component('XInput', XInput)
Vue.component('Selector', Selector)
Vue.component('Flow', Flow)
Vue.component('FlowState', FlowState)
Vue.component('FlowLine', FlowLine)
Vue.component('XButton', XButton)
Vue.component('PopupPicker', PopupPicker)
Vue.component('Group', Group)
Vue.component('Box', Box)
Vue.component('Grid', Grid)
Vue.component('GridItem', GridItem)
Vue.component('Tab', Tab)
Vue.component('TabItem', TabItem)
Vue.component('Countdown', Countdown)
Vue.component('XDialog', XDialog)
Vue.component('Icon', Icon)
Vue.component('xdialog', xdialog)

Vue.component('Swiper', Swiper)
Vue.component('ButtonTabItem', ButtonTabItem)
Vue.component('ButtonTab', ButtonTab)
Vue.use(ToastPlugin)
Vue.use(AlertPlugin)
Vue.use(ConfirmPlugin)
Vue.use(LoadingPlugin)
// ://github.com/deboyblog/vue-wechat-title
Vue.use(require('vue-wechat-title'))

FastClick.attach(document.body)
/* eslint-disable no-new */
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app-box')

